<%--
  Created by IntelliJ IDEA.
  User: 易佳
  Date: 2018/5/25
  Time: 11:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>作业四第三题</title>
    <style type="text/css">
        #error{
            color: red;
        }
    </style>
</head>
<body>
    <form action="/question3" method="post">
        <table>
            <th>
                请输入一个正实数
            </th>
            <tr>
                <td>输入的数值：</td>
                <td><input type="number" value="${num}" name="num"/></td>
                <td><p id="error" >${error}</p></td>
            </tr>
            <tr>
                <td>结果：</td>
                <td><input type="text" value="${result}" name="result"/></td>
            </tr>
            <tr>
                <td rowspan="2"><input type="submit" value="提交"/></td>
            </tr>
        </table>
    </form>

</body>
</html>
